// register
import register from '../../../scripts/angular/register.js';

// routers
import ServiceRouter from '../routers/service.routers.js';

// services
import ServiceService from '../services/serviceService.js';
import CpService from '../../cp/services/cpService.js';
import setFocusService from '../services/setFocusService.js'
import RaceService from '../../race/services/raceService.js';

// controllers
import ServiceSmsController from '../controllers/servicesms.controller.js';
import ServiceCfController from '../controllers/servicecf.controller.js';
import ServiceCfEditController from '../controllers/servicecfedit.controller.js';
import ServiceRescueController from '../controllers/servicerescue.controller.js';
import ServiceGuntimeController from '../controllers/guntime.controller.js';
import ServiceLiveVideoController from '../controllers/livevideo.controller.js';
import ServicePublishController from  '../controllers/servicepublish.controller.js';

angular
	.module('service.module', [
		'ngAnimate', 
		'ngSanitize', 
		'ui.router',
	    'ngMessages',  
		'chieffancypants.loadingBar', 
		'ngDialog', 
	    'mgcrea.ngStrap', 
		'oc.lazyLoad',
		'ng-sortable' 
	])
	.config(ServiceRouter)
	.controller('ServiceSmsController', ServiceSmsController)
	.controller('ServiceCfController', ServiceCfController)
	.controller('ServiceCfEditController', ServiceCfEditController)
	.controller('ServiceRescueController', ServiceRescueController)
	.controller('ServiceGuntimeController', ServiceGuntimeController)
	.controller('ServiceLiveVideoController', ServiceLiveVideoController)
	.controller('ServicePublishController', ServicePublishController);



register('service.module')
    .factory('ServiceService', ServiceService)
    .factory('RaceService', RaceService)
    .factory('CpService', CpService)
    .factory('setFocusService', setFocusService);